home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.smalltalk,comp.lang.perl.misc,comp.lang.pascal.borland,comp.lang.eiffel,comp.lang.cobol,comp.lang.c++.leda,comp.lang.c,comp.lang.basic.visual.3rdparty,alt.computer.workshop.live,alt.comp.hardware.homebuilt,alt.clearing.technology,alt.chinese.computing,news.newusers.questions
- Subject: Re: PROGRAMERS OF ANY LANGUAGE
- Date: 10 Apr 1996 12:51:22 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4kh3fqINNmuv@keats.ugrad.cs.ubc.ca>
- References: <Pine.SOL.3.91.960329010021.13209A-100000@harvey> <316A6189.4287@wight.hursley.ibm.com> <4kebqq$4qs@Starbase.NeoSoft.COM> <316B7C8C.794B@wight.hursley.ibm.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <316B7C8C.794B@wight.hursley.ibm.com>,
- Max Waterman <max-lton@tcp.co.uk> wrote:
- >Will Morse wrote:
- >>
- >> In article <316A6189.4287@wight.hursley.ibm.com>,
- >> Max Waterman <max@lton.u-net.com> wrote:
- >> >Javier Kohen wrote:
- >> >>
- >> >> Drew <aellis@harvey> wrote:
- >> >>
- >> >> > I am trying to document the pros and cons of the different
- >> >> >languages. Would you please e-mail me and tell me some of the things you
- >> >> >like or dislike about them.
- >> >>
- >> [ snip ]
- >> >> Why use begin/end instead of {/} ?
- >> >
- >> >Why use {/} ? Why not just get the compiler to recognise the indentation?
- >> >Does anyone out there not indent and extra width for a block? It's rare to
- >> >get the indentation wrong but it's common to forget to put the {/}s in -
- >> >especially when changing code.
- >> >
- >> >Any comments?
- >> >
- >>
- >> I like to use {/} because vi, among others, lets me find the matching
- >> }/{ using the % key.
- >
- >I like to use these features of vi, too, and I suppose it's sort of an
- >argument for using them, but I don't think an editor should dictate language
- >features or coding style. I think I tend to agree with you. I use the vi
- >features to check the matching curlies, and for navigation, but with
- >sensitive indentation, I would not need to check them, but I would miss the
- >ability to jump to the start/end of a block. I'm not sure on this one.
-
- Those curlies appear in languages other than C, for which the syntax-directed
- indentation method would fail, but the simple { } matching still works. I make
- frequent use of it in TeX code, which would not benefit from a blind
- application of C-style indentation at all.
-
- The matching is also helpful in typing ordinary english. Square brackets are
- often used in quotes to indicate editorial material, (and parentheses go
- without saying).
- --
-
-